<!-- $Id: start.htm 17216 2011-01-19 06:03:12Z liubo $ -->
{include file="pageheader.htm"}
<!-- directory install start -->
 
 
<ul style="padding:0; margin: 0; list-style-type:none; color: #CC0000;">
 <!-- <script type="text/javascript" src="http://bbs.ecshop.com/notice.php?v=1&n=8&f=ul"></script>-->
</ul>
<!-- directory install end -->
<!-- start personal message -->
{if $admin_msg}
<div class="list-div" style="border: 1px solid #CC0000">
  <table cellspacing='1' cellpadding='3'>
    <tr>
      <th>{$lang.pm_title}</th>
      <th>{$lang.pm_username}</th>
      <th>{$lang.pm_time}</th>
    </tr>
    {foreach from=$admin_msg item=msg}
      <tr align="center">
        <td align="left"><a href="message.php?act=view&id={$msg.message_id}">{$msg.title|truncate:60:"..."}</a></td>
        <td>{$msg.user_name}</td>
        <td>{$msg.send_date}</td>
      </tr>
    {/foreach}
  </table>
  </div>
<br />
{/if}
<!-- end personal message -->



<!-- start order statistics -->
<div class="list-div">
<table cellspacing='1' cellpadding='3'>
  <tr>
    <th colspan="4" class="group-title">{$lang.order_stat}</th>
  </tr>
  <tr>
    <td width="20%">今日销售额</td>
    <td width="30%"><strong style="color: red">{$today.money_paid_money}</strong></td>
    <td width="20%"><a href="sheep_list.php?act=list">今日订单数</a></td>
    <td width="30%"><strong>{$today.money_count}</strong></td>
  </tr>
  <tr>
    <td>今日会员数</td>
    <td><strong>{$today.users}</strong></td>
    <td></td>
    <td><strong></strong></td>
  </tr>

</table>
</div>
<!-- end order statistics -->
<br />
<!-- start goods statistics -->
<div class="list-div">
<table cellspacing='1' cellpadding='3'>
  <tr>
    <th colspan="4" class="group-title">待处理</th>
  </tr>
  <tr>
    <td width="20%"><a href="fan_kuan.php?act=list&state=0">待返羊款</a></td>
    <td width="30%"><strong style="color: red"><a href="fan_kuan.php?act=list&state=0">{$today.yang_count}</a></strong></td>
    <td width="20%"><a href="fan_fh.php?act=list&state=0">待返分红</a></td>
    <td width="30%"><strong style="color: red"><a href="fan_fh.php?act=list&state=0">{$today.bonus_count}</a></strong></td>
  </tr> 
  <tr>
    <td width="20%"><a href="users.php?act=list&state=2">实名认证待处理</a></td>
    <td width="30%"><strong style="color: red"><a href="users.php?act=list&state=2">{$today.rz}</a></strong></td>
    <td width="20%"><a href="yuyue.php?act=list_all&is_check=2">客户预约</a></td>
    <td width="30%"><strong style="color: red"><a href="yuyue.php?act=list_all&is_check=2">{$today.yuyue}</a></strong></td>
  </tr>
  <tr>
    <td><a href="user_account.php?act=list&process_type=0&is_paid=0">会员充值</a></td>
    <td><strong style="color: red"><a href="user_account.php?act=list&process_type=0&is_paid=0">{$today.cz_count}</a></strong></td>
    <td><a href="user_account.php?act=list&process_type=1&is_paid=0">会员提现</a></td>
    <td><strong style="color: red"><a href="user_account.php?act=list&process_type=1&is_paid=0">{$today.tx_count}</a></strong></td>
  </tr>
 
</table>
</div>
<br />
<!-- Virtual Card -->
<div class="list-div">
<table cellspacing='1' cellpadding='3'>
  <tr>
    <th colspan="4" class="group-title">商品信息</th>
  </tr>
  <tr>
    <td width="20%"><a href="sheep.php?act=list">普通商品</a></td>
    <td width="30%"><a href="sheep.php?act=list">{$today.goods1}</a></td>
    <td width="20%"><a href="sheep.php?act=list&types=2">一元商品</a></td>
    <td width="30%"><a href="sheep.php?act=list&types=2">{$today.goods2}</a></td>
  </tr>
  <tr>
    <td><a href="sheep.php?act=list&types=3">我想要</a></td>
    <td><a href="sheep.php?act=list&types=3">{$today.goods3}</a></td>
    <td></td>
    <td></td>
  </tr>
 
</table>
</div>
<!-- end order statistics -->
 

<!-- start system information -->
<div class="list-div">
<table cellspacing='1' cellpadding='3'>
  <tr>
    <th colspan="4" class="group-title">{$lang.system_info}</th>
  </tr>
  <tr>
    <td width="20%">{$lang.os}</td>
    <td width="30%">{$sys_info.os} ({$sys_info.ip})</td>
    <td width="20%">{$lang.web_server}</td>
    <td width="30%">{$sys_info.web_server}</td>
  </tr>
  <tr>
    <td>{$lang.php_version}</td>
    <td>{$sys_info.php_ver}</td>
    <td>{$lang.mysql_version}</td>
    <td>{$sys_info.mysql_ver}</td>
  </tr>
  <tr>
    <td>{$lang.safe_mode}</td>
    <td>{$sys_info.safe_mode}</td>
    <td>{$lang.safe_mode_gid}</td>
    <td>{$sys_info.safe_mode_gid}</td>
  </tr>
  <tr>
    <td>{$lang.socket}</td>
    <td>{$sys_info.socket}</td>
    <td>{$lang.timezone}</td>
    <td>{$sys_info.timezone}</td>
  </tr>
  <tr>
    <td>{$lang.gd_version}</td>
    <td>{$sys_info.gd}</td>
    <td>{$lang.zlib}</td>
    <td>{$sys_info.zlib}</td>
  </tr>
  <tr>
    <td>{$lang.ip_version}</td>
    <td>{$sys_info.ip_version}</td>
    <td>{$lang.max_filesize}</td>
    <td>{$sys_info.max_filesize}</td>
  </tr>
  
  <tr>
    <td>{$lang.ec_charset}</td>
    <td>{$ecs_charset}</td>
    <td></td>
    <td></td>
  </tr>
</table>
</div>
{literal}
{insert_scripts files="../js/echarts-all.js"}
<script type="Text/Javascript" language="JavaScript">
    var order_chart = echarts.init(document.getElementById('order_chart_div'));
    order_chart.setOption({$orders_option});
    var sales_chart = echarts.init(document.getElementById('sales_chart_div'));
    sales_chart.setOption({$sales_option});
</script>
{insert_scripts files="../js/utils.js"}
<script type="Text/Javascript" language="JavaScript">
<!--
onload = function()
{
  /* 检查订单 */
  startCheckOrder();
}
  Ajax.call('index.php?is_ajax=1&act=main_api','', start_api, 'GET', 'TEXT','FLASE');
  //Ajax.call('cloud.php?is_ajax=1&act=cloud_remind','', cloud_api, 'GET', 'JSON');
   function start_api(result)
    {
      <!-- apilist = document.getElementById("lilist").innerHTML; -->
      <!-- document.getElementById("lilist").innerHTML =result+apilist; -->
      if(document.getElementById("Marquee") != null)
      {
        var Mar = document.getElementById("Marquee");
        lis = Mar.getElementsByTagName('div');
        //alert(lis.length); //显示li元素的个数
        if(lis.length>1)
        {
          api_styel();
        }      
      }
    }
 
      function api_styel()
      {
        if(document.getElementById("Marquee") != null)
        {
            var Mar = document.getElementById("Marquee");
            if (Browser.isIE)
            {
              Mar.style.height = "52px";
            }
            else
            {
              Mar.style.height = "36px";
            }
            
            var child_div=Mar.getElementsByTagName("div");

        var picH = 16;//移动高度
        var scrollstep=2;//移动步幅,越大越快
        var scrolltime=30;//移动频度(毫秒)越大越慢
        var stoptime=4000;//间断时间(毫秒)
        var tmpH = 0;
        
        function start()
        {
          if(tmpH < picH)
          {
            tmpH += scrollstep;
            if(tmpH > picH )tmpH = picH ;
            Mar.scrollTop = tmpH;
            setTimeout(start,scrolltime);
          }
          else
          {
            tmpH = 0;
            Mar.appendChild(child_div[0]);
            Mar.scrollTop = 0;
            setTimeout(start,stoptime);
          }
        }
        setTimeout(start,stoptime);
        }
      }
//-->
</script>
{/literal}
{include file="pagefooter.htm"}
